package com.home.admin.monitor;

import com.home.common.annotation.CheckApiClient;
import com.home.common.constants.client.ClientConstant;
import com.home.common.framework.core.controller.BaseController;
import com.home.webapp.monitor.entity.BaseLoginRecord;
import com.home.webapp.monitor.service.BaseLoginRecordService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * Description: 登录日志 controller
 * Created by 王大宸 on 2020-10-12 22:27:31
 * Created with IntelliJ IDEA.
 */
@Controller
@RequestMapping(value = "/monitor/login/record")
@CheckApiClient(title = "登录日志", clientId = ClientConstant.CLIENT_WEB)
public class BaseLoginRecordController extends BaseController<BaseLoginRecordService, BaseLoginRecord, String> {
    private static final Logger logger = LoggerFactory.getLogger(BaseLoginRecordController.class);
    private static final String PATH_PREFIX = "monitor/login_log" ;

    /***
     * 功能描述：跳转到信息管理界面
     *
     * @author 王大宸
     * @date 2020-10-12 22:27:31
     * @param
     * @return java.lang.String
     */
    @GetMapping(value = "/index")
    @RequiresPermissions("monitor:baseLoginRecord:index")
    public String index() {
        return PATH_PREFIX + "/index" ;
    }

}